home *** CD-ROM | disk | FTP | other *** search
/ Champak 49 / Volume 49 - JOGO DISK .iso / Games / imagecat.swf / scripts / DefineButton2_188 / BUTTONCONDACTION on(release).as < prev   
Encoding:
Text File  |  2007-09-27  |  643 b   |  33 lines

  1. on(release){
  2.    stopDrag();
  3.    if(_droptarget eq "/base_8")
  4.    {
  5.       _X = getProperty("../base_8", _X);
  6.       _Y = getProperty("../base_8", _Y);
  7.       set("../:on",eval("../:on") + "1");
  8.       on_ += "1";
  9.       tellTarget("/base_8")
  10.       {
  11.          setProperty("/base_8", _alpha, "0");
  12.       }
  13.       gotoAndStop(3);
  14.    }
  15.    if(eval("../:on") == "10")
  16.    {
  17.       if(eval("../:tm") == "1")
  18.       {
  19.          tellTarget("../")
  20.          {
  21.             gotoAndStop("end_t1");
  22.          }
  23.       }
  24.       else
  25.       {
  26.          tellTarget("../")
  27.          {
  28.             gotoAndStop("success2");
  29.          }
  30.       }
  31.    }
  32. }
  33.